package com.itheima.stock.service.impl;

import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 主营业务业务实现
 */
@Service
@Transactional
@Slf4j
public class StockBusinessServiceImpl implements StockBusinessService {

    @Autowired
    private StockBusinessMapper stockBusinessMapper;
    /**
     * 查询所有主营业务
     *
     * @return
     */
    @Override
    public List<StockBusiness> businessAll() {
        return stockBusinessMapper.businessAll();
    }
}